const mongoose = require('mongoose')
const Schema = mongoose.Schema


const GoodSchema = new Schema({
    //商品名称
    goodname:{
        type:String,
        required:true
    },
    //单价
    good_price:{
        type:Number,
        required:true
    },
    //卡号
    card_number:{
        type:String,
        required:true
    },
    //激活码
    activation_code:{
        type:String,
        required:true
    },
    //未激活有效月份
    activation_date:{
        type:Number,
        default:10
    },
    //订单编号
    order_number:{
        type:String,
        required:true
    }
},{versionKey:false})

module.exports = mongoose.model('good',GoodSchema)
